package com.renge.eduservice.controller;

import com.renge.commonutils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
@Api(description="登录管理")
@RestController
@CrossOrigin
@RequestMapping("/eduservice/user")
public class EduLoginController {
    @PostMapping("/login")
    public R login(){
          return R.ok().data("token","fkhlgaglaa");
    }

    @GetMapping("/info")
    public R getInfo(){
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("roles","hdhdhd");
        hashMap.put("name","wgr");
        hashMap.put("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
        return R.ok().data(hashMap);
    }
}
